import request from '@/utils/request'

// 查询里程碑列表
export function progress(data) {
  return request({
    url: '/progress',
    method: 'get',
    params: data
  })
}
// 创建里程碑
export function createManagerment(data) {
  return request({
    url: '/progress/create',
    method: 'post',
    data
  })
}
// 里程碑详情
export function detailManagerment(id) {
  return request({
    url: '/progress/' + id,
    method: 'get'
  })
}
// 里程碑删除
export function deleteManagerment(data) {
  return request({
    url: '/progress/delete',
    method: 'post',
    data
  })
}
// 里程碑修改
export function updateManagerment(data) {
  return request({
    url: '/progress/update',
    method: 'post',
    data
  })
}
// 里程碑节点修改
export function updateProgressNode(data) {
  return request({
    url: '/progress/update/ProgressNode',
    method: 'post',
    data
  })
}
// 里程碑节点删除
export function deleteProgressNode(id) {
  return request({
    url: '/progress/delete/ProgressNode/' + id,
    method: 'delete'
  })
}
